import service from '@/utils/request'

/**
 * 登录接口
 * @param {*} data
 * @returns
 */
export function loginapi(data) {
  return service({
    url: '/sys/login',
    method: 'POST',
    data
  })
}

/**
 * 获取用户信息
 * @returns
 */
export function getuserinfoapi() {
  return service({
    url: '/sys/profile',
    method: 'POST'
  })
}

/**
 * 获取用户详细信息
 * @param {员工id} id
 * @returns
 */
export function getuserallinfoapi(id) {
  return service({
    url: `/sys/user/${id}`
  })
}
